package cn.b.training.baby_education_training.service;

import cn.b.training.baby_education_training.entity.BabyInfo;
import cn.b.training.baby_education_training.service.dto.BabyDto;

import java.text.ParseException;
import java.util.List;

/**
 * @program: baby_education_training
 * @description
 * @author: wuying
 * @create: 2022-12-01 01:01
 **/
public interface BabyInfoService {
    /**.
     * 添加婴儿信息
     */
    boolean insertBaby(BabyDto babyDto) throws Exception;
    /**
     * 通过id查询婴儿信息
     * @param id id
     * @return
     */
    BabyInfo getBabyById(Long id);

    /**
     * 修改婴儿信息
     * @param babyDto
     */
    boolean updateBabyInfo(BabyDto babyDto) throws ParseException;

    boolean deleteBaby(Long id);

    /**
     * 通过用户id查询婴儿信息
     * @param userId 用户id
     * @return
     */
    List<BabyInfo> getBabyByUserId(Long userId);
}
